<?php
/********************************************************
** Copyright 2010-2013. Todos los derechos reservados. **
** Desarrollado y Gestionado por:					   **
** Sugey Quintero (Analista)						   **
** José G. De Freitas (Programador)					   **
** Klaudia Uribe (Diseñadora Web)					   **
** Cesar Isturiz (Diseñador Web)					   **
**				S E A  v1.0							   **
*********************************************************/

require_once("conexion.php");
session_start();
$ingreso=0;
if (isset($_SESSION['name']) and isset($_SESSION['tiempo'])) {
        if (time()-$_SESSION['tiempo'] > 900) {
			echo "<script>alert('Lo siento, ha estado mas de 15 minutos inactivo. Vuelva a ingresar al sistema');</script>";
			echo "<script>document.location.href='salir.php';</script>";
        } else{
			$_SESSION['tiempo'] = time();
		}
	date_default_timezone_set('America/Caracas'); setlocale(LC_TIME, 'spanish');
	$usuario = $_SESSION['name'];
	$fecha = date("Y-m-d H:i:s");
	$auditoria = mysql_query("INSERT INTO auditoria SELECT '$usuario', '$fecha' , 'Contactenos' ");

    }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Cont&aacute;ctenos</title>
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<link href="style.css" rel="stylesheet" type="text/css" />
<!-- botones-->
<link type="text/css" href="js/css/smoothness/jquery-ui-1.8.16.custom.css" rel="Stylesheet" />      
<script type="text/javascript" src="js/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.16.custom.min.js"></script> 
<script>
var j$ = jQuery.noConflict();
j$(document).ready(function(){
j$(".button").button();
});

j$(function(){
	j$('#menu li a').click(function(event){
		var elem = j$(this).next();
		if(elem.is('ul')){
			event.preventDefault();
			j$('#menu ul:visible').not(elem).slideUp();
			elem.slideToggle();
		}
	});
});
</script>
<!-- fin botones-->
</head>

<body>
<div id="wrap">
<div id="header">
<div id="hora">
<?php include("Hora.php"); ?>
</div>
<div id="topnav">
<ul>
	<li><a href="index.php">Inicio</a></li>
	<li><a href="Informacion.php">Informaci&oacute;n</a></li>
	<li class="active"><a href="contactos.php">Cont&aacute;ctenos</a></li>
	<?php if (isset($_SESSION['name'])){
		if ($_SESSION['nivel']==0){ echo "<li><a href='#' onclick=\"window.open('sistema_escuela/ValidarUsuario.php?Id=2','Validar','resizable=no,top='+parseInt(((screen.height)/2)-150)+',width=350,height=200,left='+parseInt(((screen.width)/2)-150)+',menubar=no,scrollbars=no,status=no,titlebar=no,toolbar=no,directories=no,location=no,personalbar=no'); return false\">Cuentas</a></li>"; }
	} ?>
</ul>
</div>

</div>
<div id="content">
<div id="left">
<div class="post">
<div class="post_h">

</div>

<div class="postcontent">

<h2 align="center">Ficha Informativa de los T&eacute;cnicos</h2>
	 <table border=0 width="100%" align="center" height="100%" bordercolor="#58ACFA">
		<tr>
			<td width="21%" height="58" align="center" valign="top"><font size="3" face="times new roman" color="#58ACFA">Cargo</font></td>
			<td width="27%" align="center" valign="top"><font size="3" face="times new roman" color="#58ACFA">Nombre y Apellido</font></td>
			<td width="30%" align="center" valign="top"><font size="3" face="times new roman" color="#58ACFA">Correo Electr&oacute;nico</font></td>
		</tr>
		<tr>
			<td height="39" align="center" valign="top">L&iacute;der y Analista</font><br></td>
			<td valign="top" align="center">Endrina Quintero</font></td>
			<td valign="top" align="center">en_dri300@hotmail.com</font></td>
		</tr>
		<tr>
			<td height="33" align="center" valign="top"> Desarrolladora Web</font><br></td>
			<td valign="top" align="center"> Claudia Uribe</font></td>
			<td valign="top" align="center">klaudia320@hotmail.com</font></td> 
		</tr>
		<tr>
			<td height="36" align="center" valign="top"> Programador</font><br></td>
			<td valign="top" align="center"> Jos&eacute; De Freitas</font></td>
			<td valign="top" align="center"> josedefreitas91@gmail.com</font></td>
		</tr>
		<tr>
			<td height="32" align="center" valign="top"> Desarrollador Web</font></td>
			<td valign="top" align="center"> Cesar Isturiz</font></td>
			<td valign="top" align="center"> cesarx161@hotmail.com</font></td>
		</tr>  
	</table>      
</div>
<div class="post_b">
<span></span></div>
</div>
</div>

<div class="post">
<div class="post_h">

</div>


</div>
<div name="login">
	<?php
		if (!isset($_SESSION['name'])){
			if (isset($_POST['ingreso']) && $_POST['ingreso']==1){	
				include("validar.php");
			}
			echo "<div id=sidebar>";
			echo "<ul>";
			echo "<fieldset>";
			echo "<table border=0 height=100% width=100% background='imagenes/fondoinicio.jpg'>";
			echo "<form action=contactos.php method=post>";
			echo "<h3 align=center>Ingresar</h3>";
			echo "<tr><td style='border:none'><font face='Times New Roman, Times, serif' size=3><img src='images/User.png' width=20 height=20>Usuario:</font></td>";
			echo "<td style='border:none' align=center><font face='Times New Roman, Times, serif' size=3><input type=text name=usuario size=10></td></tr>";
			echo "<tr><td style='border:none'><font face='Times New Roman, Times, serif' size=3><img src='images/Keys-icon.png' width=20 height=20>Contrase&ntilde;a:</font></td>";
			echo "<td style='border:none' align=center><font face='Times New Roman, Times, serif' size=3><input type=password name=clave size=10></td></tr>";
			echo "<input type=hidden name=ingreso value=1>";
			echo "<td colspan=2 align=center style='border:none'><br><input class=button type=submit value=Aceptar>";
			echo "<input class=button type=reset value=Cancelar></td>";
			echo "</tr>";
			echo "</form>";
			echo "</table>";
			echo "</fieldset>";
			echo "</ul>";
			echo "</div>";
		}else if (isset($_SESSION['name'])){
			date_default_timezone_set('America/Caracas'); setlocale(LC_TIME, 'spanish');
			$usuario = $_SESSION['name'];
			$fecha = date("Y-m-d H:i:s");
			$sql = mysql_query("INSERT INTO auditoria SELECT '$usuario', '$fecha' , 'Visualizar Contactos' ");
			
			include("Menu.php");
		}
	?>
</div>

<div class="clear"></div>
</div>
<div id="pagebottom"></div>

<div id="footer">
<P>&reg; Derechos Reservados @ CopyRight. 2011-2012</P>
<p>Programadores: Quintero E, Isturiz C, Uribe C, De Freitas J.</p>
</div>
</div>
</body>
</html>
